package com.small.flowable.modules.app.dto.rsp;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.flowable.engine.history.HistoricDetail;

import java.util.Date;
import java.util.List;

/**
 * @author wangguochao
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ProcessInstanceRsp {

    /**
     * 流程实例ID
     **/
    private String processInstanceId;

    /**
     * 流程定义ID
     **/
    private String processDefinitionId;

    /**
     * 流程定义名称
     **/
    private String processDefinitionName;
    /**
     * 描述
     */
    private String description;
    /**
     *
     */
    private String name;
    /**
     * 启动用户
     */
    private String startUserId;
    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date startTime;
    /**
     * 事件范围
     */
    private Boolean isEventScope;
    /**
     * 活跃
     */
    private Boolean isActive;
    /**
     * 范围
     */
    private Boolean isScope;
    /**
     * 并发的
     */
    private Boolean isConcurrent;
    /**
     * 任务续
     */
    private Integer taskCount;
    /**
     * 计时器作业计数
     */
    private Integer timerJobCount;
    /**
     * 表单参数
     */
    private List<HistoricDetail> fromList;
}
